package com.cyk.user.config;

public enum AppStatus {
    FAIL(0, "request failed"),
    SUCCESS(1, "success"),
    NOT_LOGIN(2, "require login"),
    INVALID_REQUEST(3, "invalid request"),
    INVALID_PARAM(4, "invalid param"),
    INNER_ERROR(5, "service busy"),
    NOT_BINDED(6, "not binded"),
    NOT_REGISTERED(7, "not registered"),
    ACCOUNT_ABNORMAL(8, "account abnormal"),
    TOKEN_EXPIRE(9, "token expire"),
    NOT_BINDED_PHONE(11, "not bind phone"),
    RESOURCE_TMP_INVISIBLE(12, "Resources are temporarily invisible");

    public int apiCode;
    public String commonMsg;

    private AppStatus(int value, String msg) {
        this.apiCode = value;
        this.commonMsg = msg;
    }
}
